package exception;

import java.io.FileNotFoundException;

public class ThrowDemo {
    public static void main(String[] args) {
        Animal bd = new Animal();
        try {
            bd.setAge(10);
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
        System.out.println("此人的年龄为："+bd.getAge()+"岁");

    }
}
